/**
 * 
 */
package org.jboss.minstaller.util



/**
 * @author jjeon@redhat.com
 *
 */
public class StringReplacer{
    
    def m_dir = ""
    
    public StringReplacer(dir) {
        m_dir = dir
    }
    
    void replace(oldstring, newstring) {
        def ant = new AntBuilder() 
        ant.replace( dir:m_dir, includes:"**/*.xml,**/*.properties,**/*.sh", token:oldstring, value:newstring)
    }
    
}
